We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kvssankar/openapitools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
// index.js
import { loadConfig } from "./utils.js";
async function main() {
const config = loadConfig();
// Determine which server to run based on the mode in config
if (config.mode === "stdio") {
const { default: startStdioServer } = await import("./stdio-server.js");
await startStdioServer();
} else {
const { default: startSseServer } = await import("./sse-server.js");
await startSseServer();
}
}
main().catch((error) => {
console.error("Failed to start server:", error);
process.exit(1);
});